<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title><%= controller.controller_name.humanize %>: <%= controller.action_name %></title>
	<%= javascript_include_tag :defaults %>
	<%= javascript_include_tag 'fastinit' %>
	<%= javascript_include_tag 'tablesort' %>
	<%= javascript_include_tag 'newsticker' %>
	<%= stylesheet_link_tag '/rcss/site.css'%>
	<%= calendar_date_select_includes 'custom'%>
	<script type="text/javascript">
	update_sticky = function(target,id) {
		var pars = 't_loc=' + target.offsetTop + '&l_loc=' + target.offsetLeft;
		new Ajax.Request('/stickies/update_sticky_loc/' + id, {asynchronous:true, evalScripts:true, parameters: pars });
	}
	</script>
</head>
<body>
	<div id="sticky-container">
		<%= render_component(:controller=>'stickies',:action=>'index') %>
	</div>
	<div id="m">
		<%= render(:partial=>'partials/tnav')%>
		<%= render(:partial=>'partials/mnav')%>
	<% if(controller.controller_name != "community" and controller.controller_name != "account" and controller.controller_name != "help") -%>
			<%= render(:partial=>'partials/leftbar')%>
			<%= yield %>
		<% if controller.action_name == 'index' -%>
			<%= render(:partial=>'partials/side_search')%>
			<%= render_component(:controller=>'history', :action=>'right_bar')%>
		<% else -%>
			<%= render(:partial=>'partials/rightline') -%>
		<% end -%>
	<% else -%>
		<%= yield %>
	<% end -%>
			<%= render(:partial=>'partials/foot') %>	
	</div>
</body>
</html>